<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><@s.message 'home.title'/></title>
    <script type="text/javascript" src="<@s.url '/resources/common/jart/jquery-1.6.2.min.js'/>"></script>
    <link rel="stylesheet" type="text/css" href="<@s.url '/resources/layout/css/zh-cn.default.css'/>"/>
<@block name="styles"></@block>
</head>
<body>
<div id="header">
    <table class="cont" id="topbar">
        <tbody>
        <tr>
            <td class="w-p50">
                <span id="companyname"><@block name="project"></@block></span>
            </td>
            <td id="account" class="a-right">
            <@shiro.guest>
                <a href="<@s.url '/login'/>" class="login"><@s.message 'operation.login'/></a>
                <a href="<@s.url '/account/register'/>" class="register"><@s.message 'home.account.register'/></a>
            </@shiro.guest>
            <@shiro.user>
                您好！<a href="<@s.url '/account/profile'/>" class="login"><@shiro.principal/></a> &nbsp;&nbsp;
                <a href="<@s.url '/account/chpwd'/>" class="login"><@s.message 'home.account.modifypwd'/></a>
                <a href="#" id="logout" class="logout"><@s.message 'operation.logout'/></a>
            </@shiro.user>
            </td>
        </tr>
        </tbody>
    </table>
    <table class="cont" id="navbar">
        <tbody>
        <tr>
            <td id="mainmenu">
                <ul>
                    <li id="dashboard"  name="概述"><nobr><a href="<@s.url '/project/dashboard/'/>${pid}"/><span id="mainbg">&nbsp;</span>概述</a></nobr></li>
                    <li id="p_issue"  name="反馈"><nobr><a href="<@s.url '/project/p_issue/'/>${pid}"/>反馈</a></nobr></li>
                    <li id="new_issue"  name="新建反馈"><nobr><a href="<@s.url '/project/add_issue/'/>${pid}"/>新建反馈</a></nobr></li>
                    <li id="milestone"  name="里程碑"><nobr><a href="<@s.url '/milestone/list/'/>${pid}"/>里程碑</a></nobr></li>
                    <li id="back" name="返回主页"><nobr><a href="<@s.url '/dashboard'/>"/>返回主页</a></nobr></li>
                    <li id="searchbox">
                        <input type="text" name="searchQuery" id="searchQuery" value="编号(ctrl+g)" onClick="this.value=''" onKeyDown="if(event.keyCode==13) shortcut()" class="w-120px">
                        <input type="button" id="objectSwitcher" onClick="shortcut()">
                    </li>
                </ul>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div id="wrapper">
    <div id="main" class="nosidebar">
        <div id="sidebar">
		        <@block name="toolbar"></@block>
        </div>
        <div id="content">
		<#--<#if title != null>-->
            <#--<h2><@s.message title/></h2>-->
		<#--</#if>-->
                <div id="g_msg" class="msg_info hidden"></div>
		        <@block name="main"></@block>
        </div>
    </div>
 </div>
<div id="footer">
    <table class="cont">
        <tbody>
        <tr>
            <td class="w-p50 " id="crumbs">
                 <a href="#"><@block name="project"></@block></a>
                 <span class="icon-arrow">&nbsp; </span>
                 <a href="#"><span id="current_name"></span></a>
            <td class="a-right" id="poweredby">
                <span>Powered by <a href="#" target="_blank">iflytek@ZY</a> (pro1.0)</span>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript" src="<@s.url '/resources/common/plugins/jquery.form.js'/>"></script>
<script type="text/javascript" src="<@s.url '/resources/common/plugins/jquery.utils.min.js'/>"></script>
<script type="text/javascript" src="<@s.url '/resources/common/jart/jart.js'/>"></script>
<script type="text/javascript" src="<@s.url '/resources/common/javascript/common.js'/>?ver=<@s.message 'system.version'/>"></script>
<script type="text/javascript" src="<@s.url '/resources/common/message/zh_CN.js'/>?ver=<@s.message 'system.version'/>"></script>
<script type="text/javascript">
    var system_vars = {
        basePath:'<@s.url '/'/>'
    };
    $(document).ready(function () {
        $('#${current}').addClass('active');
        $('#current_name').html($('#${current}').attr('name'));
	    $('#logout').click(function(){
			cdms.common.cleanup_cookie();
			window.location.href = '<@s.url '/logout'/>';
        })
    })
</script>
<@block name="scripts"></@block>
</body>
</html>